package com.itheima.service;

import com.itheima.domain.Account;

import java.util.List;

public interface AccountService {

    void save(Account account);

    void delete(Integer id);

    void update(Account account);

    List<Account> findAll();

    Account findById(Integer id);
    Double buy(Double integer);

    void addMoney(Integer id,Double money);
    void subMoney(Integer id,Double money);
    void transferMoney(Integer id,Integer sid,Double money) throws InterruptedException;

}
